//
//  MonitorListCell.m
//  OGL
//
//  Created by ZengYuan on 15/1/5.
//  Copyright (c) 2015年 ZengYuan. All rights reserved.
//

#import "ChannelListCell.h"
#import "Config.h"
#import <objc/runtime.h>
#import <objc/message.h>

//@implementation UITableViewCell (FixUITableViewCellAutolayoutIHope)
//
////处理ios6 autolayout下崩溃bug
//+ (void)load
//{
//    Method existing = class_getInstanceMethod(self, @selector(layoutSubviews));
//    Method new = class_getInstanceMethod(self, @selector(_autolayout_replacementLayoutSubviews));
//    
//    method_exchangeImplementations(existing, new);
//}
//
//- (void)_autolayout_replacementLayoutSubviews
//{
//    [super layoutSubviews];
//    [self _autolayout_replacementLayoutSubviews]; // not recursive due to method swizzling
//    [super layoutSubviews];
//}
//
//@end


@implementation ChannelListCell
-(void)layoutSubviews{
    [super layoutSubviews];
    
    coverView.layer.masksToBounds = YES;
    coverView.layer.borderColor=RGBA(168, 168, 168, 0.7).CGColor;
    coverView.layer.borderWidth=1;
    coverView.layer.cornerRadius = 5;
}

- (IBAction)editNameAction:(id)sender {
    //编辑名称
    self.changeBlock();
    
}
@end
